package com.elong.qadev.service.impl;

import java.util.ArrayList;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.elong.qadev.dao.LogDaoI;
import com.elong.qadev.entity.Log_Case;
import com.elong.qadev.entity.Log_TaskInfo;
import com.elong.qadev.service.LogServiceI;
@Service("logService")
public class LogServiceImpl implements LogServiceI {
	@Autowired
	private LogDaoI logDao;
	@Override
	public boolean saveLog_h(Log_Case lh) {
		logDao.saveLog_h(lh);
		return true;
	}

	@Override
	public boolean saveLog_t(Log_TaskInfo lt) {
		logDao.saveLog_t(lt);
		return true;
	}

	@Override
	public ArrayList<Log_Case> getLogHttpCaseByBatchNumber(String batchNumber) {
		
		return logDao.getLogHttpCaseByBatchNumber(batchNumber);
	}

	@Override
	public Log_TaskInfo getLogTaskInfoByBatchNumber(String lastBatchNumber) {
		return logDao.getLogTaskInfoByBatchNumber(lastBatchNumber);
	}

}
